package com.ssm.subject.application.convert;

import com.ssm.subject.application.dto.SubjectInfoDTO;
import com.ssm.subject.domain.bo.SubjectInfoBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectInfoDTOConvert {
    SubjectInfoDTOConvert INSTANCE = Mappers.getMapper(SubjectInfoDTOConvert.class);

    //DTO 转 BO
    SubjectInfoBO subjectInfoDtoToBo(SubjectInfoDTO subjectInfoDTO);

    //Bo 转 DTO
    SubjectInfoDTO subjectInfoBoTODto(SubjectInfoBO subjectInfoBO);

    //BoList 转 DTOList
    List<SubjectInfoDTO> subjectInfosToDtos(List<SubjectInfoBO> subjectInfoBOs);

}
